import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';


import { AppComponent } from './app.component';
import { MainComponent } from './src/mian.component';

import { configeService ,arr  } from "./service/service";
import { AppRoutingModule } from './routing.module';


@NgModule({
  declarations: [
    AppComponent,
    MainComponent,
  ],
  imports: [
    BrowserModule,
    FormsModule,
    AppRoutingModule
  ],
  providers: [
	  configeService,
	  arr,
	  {provide: 'API_URL', useValue: 'hello wrold'},
	  // { provide: 'ApiServiceAlias', useExisting: configeService }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
